﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using MillerApp.DataContract.Common.Entity;

namespace MillerApp.Business.Rules.Common
{
    public enum RuleTimeUnit
    {
        Year = 1,
        Month = 2,
        Day = 3,
        Hour = 4,
        Minute = 5,
        Second = 6,
    }
    public enum RuleStatus
    {
        InValid = 0,
        Valid=1,
    }
    
    public class RuleEntity
    {
        public string AssemblyName { get; set; }
        public string Name { get; set; }
        public string TimeSpan { get; set; }
        public RuleTimeUnit TimeUnit { get; set; }
        public DateTime StartTime { get; set; }
        public RuleStatus Status { get; set; }
    }
    public class BaseRule : IBaseRule
    {
        public virtual void Execute(List<KeyValueEntry> ruleParams)
        {
        }
    }
}
